#ifndef Location_H
#define Location_H

#include <QtGui/QWidget>
#include "ui_location.h"
#include "core/stringdefines.h"

namespace EarthView
{
	namespace World
	{
		namespace Spatial3D
		{
			namespace Controls
			{
				class CGlobeControl;
			}
		}
	}
}
class CScreenScutcheon;
class Location : public QWidget
{
	Q_OBJECT

public:

	Location(QWidget *parent = 0, Qt::WFlags flags = 0);

	~Location();

	void goTo(const EVString& cityName, double lat, double lon, double alt);

	void setGlobeControl(EarthView::World::Spatial3D::Controls::CGlobeControl* ref_globeControl);

	void setScutcheon(CScreenScutcheon* ref_scutcheon);

private slots:

	void slotbtnchangbaishan();
 	void slotbtnreturn();
	void slotbtnbaicheng();
	void slotbtnbaishan();
	void slotbtnchangchun();
	void slotbtnjilin();
	void slotbtnliaoyuan();
	void slotbtnsiping();
	void slotbtnsongyuan();
	void slotbtntonghua();
	void slotbtnxingqudian();
	void slotbtnyanbian();

	void slotbtnchangchun1();
	void slotbtndehui();
	void slotbtnnongan();
	void slotbtnyushu();
	void slotbtnhuadian();
	void slotbtnjiaohe();
	void slotbtnjilin1();
	void slotbtnpanshi();
	void slotbtnshulan();
	void slotbtnyongji();
	void slotbtnbaicheng1();
	void slotbtndaan();
	void slotbtntaonan();
	void slotbtntongyu();
	void slotbtnzhenlai();
	void slotbtnbaishan1();
	void slotbtnchangbai();
	void slotbtnfusong();
	void slotbtnjingyu();
	void slotbtnlinjiang();
	void slotbtndongfeng();
	void slotbtndongliao();
	void slotbtnliaoyuan1();
	void slotbtngongzhuling();
	void slotbtnlishu();
	void slotbtnshuangliao();
	void slotbtnsiping1();
	void slotbtnyitong();
	void slotbtnchangling();
	void slotbtnfuyu();
	void slotbtnqianan();
	void slotbtnqianguo();
	void slotbtnsongyuan1();
	void slotbtnhuinan();
	void slotbtnjian();
	void slotbtnliuhe();
	void slotbtnmeihekou();
	void slotbtntonghua1();
	void slotbtntonghuaxian();
	void slotbtnantu();
	void slotbtndunhua();
	void slotbtnhelong();
	void slotbtnhuichun();
	void slotbtnlongjing();
	void slotbtntumen();
	void slotbtnwangqing();
	void slotbtnyanji();
	void slotbtnyanbian2();

protected:

    void getAttribute();

	std::map<EVString,EVString> mCityMap;

	CScreenScutcheon* mpScutcheon;

private:

	Ui::locationClass ui;

	EarthView::World::Spatial3D::Controls::CGlobeControl* mpGlobeControl;

	EVString mPath;
};

#endif // Location_H
